package com.hksj.aqm.mapper;

import com.hksj.aqm.dto.AqmLargeScreenDTO;
import com.hksj.aqm.dto.ExportAqmDeviceHistoryDTO;
import com.hksj.aqm.vo.AqmAlarmStatusVO;
import com.hksj.aqm.vo.AqmAlarmTypeVO;
import com.hksj.aqm.vo.AqmDeviceHistoryVO;
import com.hksj.tdengine.taos.annatation.DS_TAOS;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;

@Mapper
public interface AqmLargeScreenMapper {
    //分类查询报警数量
    List<AqmAlarmTypeVO> queryAqmAlarmByType(@Param("dto") AqmLargeScreenDTO dto);

    //分类查询报警状态
    List<AqmAlarmStatusVO> queryAqmAlarmStatus(@Param("dto") AqmLargeScreenDTO dto);

    String queryAqmDevicePaths(@Param("dto") ExportAqmDeviceHistoryDTO dto);

    @DS_TAOS
    List<AqmDeviceHistoryVO> queryAqmDeviceHistory(@Param("dto")ExportAqmDeviceHistoryDTO dto, @Param("tableName")String tableName);

}
